package com.t174.car.entity;


import org.springframework.format.annotation.NumberFormat;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.math.BigDecimal;

public class CarComponents {

  private int id;
  private String brand;
  private String model;
  private CarConfig carConfig = new CarConfig();
  private BigDecimal minMoney;
  private BigDecimal maxMoney;

  public void setMinMoney(BigDecimal minMoney) {
    this.minMoney = minMoney;
  }

  public BigDecimal getMinMoney() {
    return minMoney;
  }

  public void setMaxMoney(BigDecimal maxMoney) {
    this.maxMoney = maxMoney;
  }

  public BigDecimal getMaxMoney() {
    return maxMoney;
  }

  public CarConfig getCarConfig(){ return carConfig; }

  public void setCarConfig(CarConfig carConfig) { this.carConfig = carConfig; }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getBrand() {
    return brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }

  public String getModel() {
    return model;
  }

  public void setModel(String model) {
    this.model = model;
  }

}
